package com.edu.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: myApp
 * @Titile: HelloController
 * @Author: Administrator
 * @Description: 演示日志的使用
 */
@RestController
@RequestMapping("/hello")
@Slf4j
public class HelloController {


    @GetMapping()
    public String hello(){
        log.info("有人访问了这个API....");
        return "Hello World";
    }
}
